<template>
  <div class="EquipmentDetails">
    <NavBar fixed placeholder title="设备详情" z-index="999" ref="nav">
      <template #left>
        <Icon
          name="arrow-left"
          size="0.53rem"
          color="#000"
          @click="$router.back()"
        />
      </template>
    </NavBar>
    <div class="space"></div>
    <div class="title flex">
      <div class="placeholder"></div>
      <span>基本信息</span>
    </div>
    <Cell title="设备编号" :value="info.id" />
    <Cell title="设备名称" :value="info.name" />
    <Cell title="设备类别" :value="info.type" />
    <Cell title="生产厂家" :value="info.manufacturer" />
    <Cell title="出厂编号" :value="info.startId" />
    <Cell title="设备型号" :value="info.model" />
    <Cell title="所在位置" :value="info.location" />
    <Cell title="安装时间" :value="info.time" />
    <Cell title="安装单位" :value="info.unit" />
    <Cell title="责任人" :value="info.user" />
    <Cell title="责任部门" :value="info.department" />

    <div class="space">'QRcode:'{{ $route.query.code }}</div>

    <div class="title flex">
      <div class="placeholder"></div>
      <span>设备照片</span>
    </div>
    <div class="photo flex">
      <img src="../../../assets/img/sao.png" alt="" />
    </div>
    <div class="btn-placeholder"></div>
    <Button class="sumbit btn-placeholder" @click="toJump">设备报修</Button>
  </div>
</template>

<script>
import { Popup, NavBar, Icon, Field, List, Button, Cell } from "vant";
export default {
  props: {},
  data() {
    return {
      info: {
        id: "",
        name: "",
        type: "",
        manufacturer: "",
        startId: "",
        model: "",
        location: "",
        time: "",
        unit: "",
        user: "",
        department: "",
        photo: "",
      },
    };
  },
  computed: {},
  created() {},
  mounted() {},
  watch: {},
  methods: {
    toJump() {
      this.$router.push("equipmentRepair");
    },
  },
  components: { Popup, NavBar, Icon, Field, Cell, List, Button },
};
</script>

<style scoped lang="less">
.EquipmentDetails {
  .flex {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  //   background-color: #f7f7f9;
  // /deep/.van-nav-bar__content {
  //   background-color: #3982f6;

  //   .van-nav-bar__title {
  //     color: #fff;
  //   }
  // }
  // /deep/.van-nav-bar__title {
  //   font-size: 36px;
  //   font-family: PingFang SC;
  //   font-weight: 500;
  //   color: #333333;
  // }
  .space {
    background-color: #f7f7f9;
    width: 100%;
    height: 20px;
  }
  .title {
    justify-content: start;
    font-size: 32px;
    font-weight: 700;
    margin-top: 20px;
    .placeholder {
      width: 5px;
      height: 30px;
      background-image: linear-gradient(110deg, #1da4f6 0%, #3982f6 100%),
        linear-gradient(#3982f6, #3982f6);
      margin: 0 20px;
    }
    .id {
      margin-left: 20px;
    }
  }
  .photo {
    width: 100%;
    height: 450px;

    img {
      width: 95%;
      height: 95%;
    }
  }
  .btn-placeholder {
    width: 90%;
    height: 130px;
  }
  .sumbit {
    height: 100px;
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 5px;
    font-size: 36px;
    font-size: 36px;
    font-family: PingFang SC;
    font-weight: 500;
    color: #ffffff;
    background: #e16712;
    border-radius: 6px;
  }
}
</style>
